package com.zhangbo.study.designpatternlearning.combination;

public class MenuTestDriveCombination {

    public static void main(String[] args) {
        MenuComponent pancakeHouseMenu = new Menu("PANCAKE HOUSE MENU","Breakfast");
        MenuComponent dinerMenu = new Menu("PANCAKE HOUSE MENU","Breakfast");
        MenuComponent cafeMenu = new Menu("CAFE MENU","Dinner");

        MenuComponent allMenus = new Menu("ALL MENUS","All menus combined");
        allMenus.add(pancakeHouseMenu);
        allMenus.add(dinerMenu);

        pancakeHouseMenu.add(new MenuItem("Pasta","Spaghetti with Marinara Sauce",true,1.59));

        pancakeHouseMenu.add(cafeMenu);

        cafeMenu.add(new MenuItem("Caffe","Caffe",true,2.1));

        WaitressCombination waitressCombination = new WaitressCombination(allMenus);
        waitressCombination.printMenu();

    }
}
